import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/member/growthchangehistory',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/member/growthchangehistory/' + id,
    method: 'delete'
  })
}

export function edit(data) {
  return request({
    url: '/member/growthchangehistory',
    method: 'put',
    data
  })
}

export function getGrowthChangeHistory(id) {
  return request({
    url: '/member/growthchangehistory/' + id,
    method: 'get'
  })
}

export function listGrowthChangeHistory(params) {
  return request({
    url: '/member/growthchangehistory/list/' + params.pageNum + '/' + params.pageSize,
    method: 'get',
    params
  })
}

export default { add, edit, del, getGrowthChangeHistory, listGrowthChangeHistory }
